<?php
//bugreport receiver
require_once('../setup.inc.php');
ob_start();
print_r($_SESSION);
print_r($_REQUEST);
print_r($_SERVER);
$debug_data = ob_get_contents();
ob_end_clean();

mail(ADMIN_EMAIL,"BUG!! Transpo Bug!!", "The following bug report was filed on " . date("m/d/Y") . "\n---------------------------\n" . $_POST['report'] . "\n\nDebug Data:\n" . $debug_data . "\n\nsid=" . $_POST['sid'] . "\nuid=" . $_POST['uid']);

if(isset($_POST['ajax'])) {
	print $_SESSION['firstname'];
} else {
//this request was NOT made through ajax... output needed.
print "Thank you for your report. We will look into it.";

}
?>